package com.wz.boot.function.repeatchicken;

import com.wz.boot.annotation.Function;
import com.wz.boot.annotation.Handle;
import love.forte.simbot.api.message.events.PrivateMsg;
import love.forte.simbot.api.sender.Sender;
import org.springframework.stereotype.Component;

/**
 * 复读鸡的功能类
 */
@Function(
        priority = 1,
        name = "复读鸡",
        describe = "你说一句话,我复读呀!",
        touch = "复读鸡",
        claName = "RepeatChicken",
        valid = false
)
@Component
public class RepeatChicken {

    @Handle(defaultHandle = true)
    public void sendRepeatMsg(PrivateMsg privateMsg, Sender sender){
        sender.sendPrivateMsg(privateMsg, privateMsg.getMsgContent());

    }
}
